-- this script handles a diagonally divided button, intended to be
-- a right dogear
put (item 1 of the clickLoc) - (item 1 of the rect of the target) into x
put (item 4 of the rect of the target) - (item 2 of the clickLoc) into y
if (x < y) then -- click is in upper left
visual effect wipe left
play "click"
go card "ham1"
else
visual effect wipe right
play "click"
go previous
end if
end mouseUp
-- part 7 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=462 top=306 right=340 bottom=508
-- title width / last selected line: 0
-- icon id / first selected line: 24317 / 24317
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Go first
----- HyperTalk script -----
on mouseUp
set lockscreen to true
go card "tline"
hide background field "one"
hide background field "two"
hide background field "three"
hide background field "four"
set lockscreen to false
visual effect dissolve
go to card "tline"
end mouseUp
-- part contents for card part 3
----- text -----
No, the other dogear!
-- part contents for background part 1
----- text -----
If a veterinarian performs a major operation on an ox or an ass and has saved its live, the owner shall pay one-sixth of a shekel of silver. If the veterinarian has caused the animal's death, he shall give the owner one-fourth of its value.